package com.geek.activemq.jms;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 消费者
 */
@Component
public class JmsConsumer {

    @JmsListener(destination = "activeTest")
    public void receiveMessage(Map message) {
        System.out.println("receiver: " + message);
    }
}
